<%@ page import="java.io.PrintWriter" %><%--
  Created by IntelliJ IDEA.
  User: jiangxuchuan
  Date: 2022/1/4
  Time: 14:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>AddSum</title>
</head>
<body>
    <%
        int result = 0;
        for (int i = 1;i <= 100;i++){
            result = result + i;
        }
        response.getWriter().print("<h1>sum="+result+"</h1>");
    %>

</body>
</html>
